package com.cx.dao;

import com.cx.domain.time;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface timeDao {
    @Select("SELECT * FROM time")
    List<time> selectlog();
    @Insert("INSERT INTO time(operate_goods_id,operate_type,operate_time) VALUES(#{id},#{type},NOW())")
    void insertlog(@Param("id")String id,@Param("type")String type);
}
